package com.bloveoacom.weichi.model;


import com.bloveoacom.http.HttpMethods;
import com.bloveoacom.http.HttpResult;
import com.bloveoacom.weichi.contract.LoginContract;

import io.reactivex.Flowable;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/8/22
 * desc  : 我的
 */
public class LoginModel implements LoginContract.Model {



    @Override
    public void onDestroy() {

    }


    @Override
    public Flowable<HttpResult<Object>> login(String phone, String code) {
        return HttpMethods.getInstance().getHttpService().login(phone,code);
    }

    @Override
    public Flowable<HttpResult<String>> sendCode(String phone, int type) {
        return HttpMethods.getInstance().getHttpService().getCode(phone,type);
    }
}
